package com.example.smart.ui.activity.animal

import com.example.lib.extend.setOnDoubleClickListener
import com.example.lib.utils.statusbar.StatusBarUtils
import com.example.smart.base.ui.activity.BaseActivity
import com.example.smart.R
import com.example.smart.databinding.ActivityAddAnimalQrcodeBinding
import com.example.smart.utils.DisplayUtils

class AddAnimalQrCodeActivity : BaseActivity<ActivityAddAnimalQrcodeBinding>(){

    override fun layoutID() = R.layout.activity_add_animal_qrcode

    override fun initView() {
        StatusBarUtils.setStateAndNavigationBar(this@AddAnimalQrCodeActivity, statusBarColor = com.example.lib.R.color.translate)
    }

    override fun initListener() {
        binding.Exit.setOnDoubleClickListener {
            finish()
        }

        binding.Go.setOnDoubleClickListener {
            DisplayUtils.toScan(this@AddAnimalQrCodeActivity)
        }
    }
}